submenu Property |
String that specifies the unique ID of a shortcut menu, which can be used as sub menu for the menu item.
Syntax
HTML |
<div submenu=sID> ... </div> |
Scripting |
menuItemID.submenu [ =sID ] |
Parameters
Parameter |
Description |
|---|---|
sID |
String that denotes the unique identifier of a shortcut menu which can be used as sub menu to the menu item. |
Remarks
Thesubmenuproperty can carry any valid name of the shortcut menus, but not the name of the shortcut menu from which the menu item originated. By doing so, a cyclic reference is reached, resulting in an infinite loop.
Example
The following example shows how submenu can be used to refer to another shortcut menu from a shortcut menu.
<!-- First Context menu -->
<div cordysType="wcp.library.ui.ContextMenu" id="firstContext">
<div id="new">New Item</div>
<div id="save" submenu="secondContext">Save</div>
</div>
<!-- Second Context menu -->
<div cordysType="wcp.library.ui.ContextMenu" id="secondContext">
<div id="saveItem">Save Item</div>
<div id="saveItemAs">Save Item As</div>
</div>